﻿using SmartPlant.Model;
namespace SmartPlant.Model.Biz
{
    public class Instruments : MetaDataEntity
    {
        #region 1

        //public bool VisibilityFlg { set; get; }

        //public bool BomIncludeFlg { set; get; }

        public List<PdGeneral> PdGenerals { set; get; }

        public UdfComponent UDF { set; get; }

        //public SpecSheetData SpecSheetData { set; get; }

        #endregion 1

        public decimal CMPNT_ID { get; set; }

        public decimal PROJ_ID { get; set; }

        public decimal SITE_ID { get; set; }

        public decimal CHG_NUM { get; set; }

        public decimal PLANT_ID { get; set; }

        public decimal AREA_ID { get; set; }

        public decimal UNIT_ID { get; set; }

        public string CHG_STATUS { get; set; }

        public string USER_NAME { get; set; }

        public DateTime? CHG_DATE { get; set; }

        public string CMPNT_NAME { get; set; }

        public string CMPNT_SERV
        {
            get
            {
                return _CMPNT_SERV;
            }
            set
            {
                _CMPNT_SERV = value;
                OnPropertyChanged(nameof(CMPNT_SERV));
            }
        }
        private string _CMPNT_SERV;
        public decimal SPEC_ID { get; set; } = 0;

        public string CMPNT_NUM { get; set; }

        public decimal CMPNT_TYPE_ID { get; set; }

        public string CMPNT_SUFF { get; set; }

        public decimal CMPNT_FUNC_TYPE_ID { get; set; }

        public string NAME_LOCK { get; set; }

        public string CMPNT_NAME_PARM { get; set; }

        public string OLD_CMPNT_NAME { get; set; }

        public decimal CMPNT_LOC_ID { get; set; }

        public decimal CMPNT_SYS_IO_TYPE_ID { get; set; }

        public decimal CMPNT_HANDLE_ID { get; set; }

        public decimal EQUIP_ID { get; set; }

        public decimal? ITEM_PRICE { get; set; }

        public string CMPNT_NOTE { get; set; }

        public string REMARK1 { get; set; }

        public string Remark2 { get; set; }

        public string Remark3 { get; set; }

        public string Remark4 { get; set; }

        public string Remark5 { get; set; }

        public string Prefix { get; set; }

        public decimal CMPNT_SEQ { get; set; }

        public decimal LOOP_ID { get; set; }

        public decimal? CMPNT_DRAWING_SEQ { get; set; }

        public string INST_TYPE_BLK_FLG { get; set; }

        public string TAG_TRANS_NAME { get; set; }

        public decimal? CMPNT_MOD_ID { get; set; }

        public decimal? CMPNT_MFR_ID { get; set; }

        public decimal PROC_FUNC_ID { get; set; }

        public string SPEC_CMPNT_TYPE { get; set; }

        public string SPEC_CMPNT_FUNC { get; set; }

        public string SPEC_CMPNT_PRICE { get; set; }

        public string SPEC_CMPNT_MOUNTING { get; set; }

        public string SPEC_CMPNT_SN { get; set; }

        public string SPEC_CMPNT_PO_NO { get; set; }

        public string SPEC_CMPNT_PO_ITEM_NO { get; set; }

        public string SPEC_CMPNT_POWER_SUPPLY { get; set; }

        public string SPEC_ENCLOSURE_CLASS { get; set; }

        public decimal? ADD_LINE_ID { get; set; }

        public decimal DWG_ID { get; set; }

        public decimal LINE_ID
        {
            get
            {
                return _LINE_ID;
            }
            set
            {
                _LINE_ID = value;
                OnPropertyChanged(nameof(LINE_ID));
            }

        }
        private decimal _LINE_ID;


        public string LOOP_PARAM { get; set; }

        public decimal? CMPNT_CRITICAL_ID { get; set; }

        public string CMPNT_QUALITY_FLG { get; set; }

        public decimal? INST_RANGE_MIN { get; set; }

        public decimal? INST_RANGE_MAX { get; set; }

        public string INST_RANGE_UOM_MIN { get; set; }

        public string INST_RANGE_UOM_MAX { get; set; }

        public string INST_RANGE_UFLG_MIN { get; set; }

        public string INST_RANGE_UFLG_MAX { get; set; }

        public decimal? CALIB_RANGE_MIN { get; set; }

        public decimal? CALIB_RANGE_MAX { get; set; }

        public string CALIB_RANGE_UOM_MIN { get; set; }

        public string CALIB_RANGE_UOM_MAX { get; set; }

        public string CALIB_RANGE_UFLG_MIN { get; set; }

        public string CALIB_RANGE_UFLG_MAX { get; set; }

        public decimal? DCS_RANGE_MIN { get; set; }

        public decimal? DCS_RANGE_MAX { get; set; }

        public string DCS_RANGE_UOM { get; set; }

        public decimal? DRY_WEIGHT { get; set; }

        public decimal? FULL_WEIGHT { get; set; }

        public decimal? UOM_ID { get; set; }

        public decimal? INSTR_PD_FLG { get; set; }

        public string DCS_RANGE_UFLG { get; set; }

        public decimal? REV_ID { get; set; }

        public decimal? ENG_PROJ_ID { get; set; } = 0;

        public decimal? ENG_REF_ID { get; set; } = 0;

        public decimal? CMPNT_CERTIF_ID { get; set; }

        public string FB_TAG_NO { get; set; }

        public string FB_DEV_ADDRESS { get; set; }

        public string FB_DEV_ID { get; set; }

        public decimal? FB_MIN_VOLT { get; set; }

        public decimal? FB_MAX_VOLT { get; set; }

        public decimal? FB_DC_CUR { get; set; }

        public decimal? FB_MIN_TRANSMIT_LEVEL { get; set; }

        public string FB_STANDARD { get; set; }

        public decimal WIRE_GROUP_ID { get; set; }

        public decimal MASTER_CMPNT_ID { get; set; }

        public decimal? CMPNT_FIND_REM { get; set; }

        public string REQ_NO { get; set; }

        public decimal? TC_LINE_NUMBER_ID { get; set; }

        public string TC_LOCATION_LAYOUT { get; set; }

        public string TC_FIRE_AREA { get; set; }

        public decimal? TC_FIELD_EQUIPMENT_ID { get; set; }

        public decimal? TC_SIGNAL_ID { get; set; }

        public decimal? UDT_SUPPORT_ID1 { get; set; }

        public decimal? UDT_SUPPORT_ID2 { get; set; }

        public decimal? UDT_SUPPORT_ID3 { get; set; }

        public decimal? UDT_SUPPORT_ID4 { get; set; }

        public decimal? PANEL_ID { get; set; }

        public decimal? STRIP_ID { get; set; }

        public decimal? LOAD_WATT { get; set; }

        public decimal? Capacitance { get; set; }

        public string CAPACITANCE_UOM { get; set; }

        public string PIPE_CLASS { get; set; }

        public string BACKUP_LINK_MASTER { get; set; }

        public decimal? FIELDBUS_DEVICE_REV { get; set; }

        public decimal ELECT_EQUIP_ID { get; set; }

        public decimal ELECT_LOAD_EQUIP_ID { get; set; }

        public decimal DWG_SCHEMATIC_ID { get; set; }

        public string TYPICAL_SCHEMATIC { get; set; }

        public string Circuit { get; set; }

        public decimal? UDT_SUPPORT_ID5 { get; set; }

        public decimal? UDT_SUPPORT_ID6 { get; set; }

        public decimal? UDT_SUPPORT_ID7 { get; set; }

        public decimal? UDT_SUPPORT_ID8 { get; set; }

        public decimal? UDT_SUPPORT_ID9 { get; set; }

        public decimal? UDT_SUPPORT_ID10 { get; set; }

        public decimal? UDT_SUPPORT_ID11 { get; set; }

        public decimal? UDT_SUPPORT_ID12 { get; set; }

        public decimal? UDT_SUPPORT_ID13 { get; set; }

        public decimal? UDT_SUPPORT_ID14 { get; set; }

        public decimal? UDT_SUPPORT_ID15 { get; set; }

        public decimal? UDT_SUPPORT_ID16 { get; set; }

        public string REQUIRES_POWER_SUPPLY { get; set; }

        public decimal? RELATED_VOLTAGE_ID { get; set; }

        public decimal? FREQUENCY_ID { get; set; }

        public decimal? NUMBER_OF_PHASES_ID { get; set; }

        public decimal? OPERATING_MODE_ID { get; set; }

        public decimal? RATED_VOLTAGE_ID { get; set; }

        public decimal? FULL_LOAD_CURRENT { get; set; }

        public decimal? STARTING_CURRENT { get; set; }

        public decimal? RATED_ACTIVE_LOAD { get; set; }

        public decimal? RATED_APPARENT_LOAD { get; set; }

        public decimal? RATED_REACTIVE_LOAD { get; set; }

        public string POWER_SUPPLY_TYPE_FLAG { get; set; }

        public string POWER_DISTRIBUTION_BOARD { get; set; }

        public string Cell { get; set; }

        public decimal? Zzcoincidencefactor { get; set; }

        public decimal? Zcoincidencefactor { get; set; }

        public decimal? Ycoincidencefactor { get; set; }

        public decimal? Xcoincidencefactor { get; set; }

        public string Phase1 { get; set; }

        public string Phase2 { get; set; }

        public string Phase3 { get; set; }

        public decimal? POWER_FACTOR_FULL_LOAD { get; set; }

        public decimal? PIPE_CLASS_ID { get; set; }

        public string ANALYZER_FLG { get; set; }

        public decimal? CMPNT_IS_CIRCUITE_TYPE_ID { get; set; }

        public decimal? LINE_CMPNT_ID { get; set; }

        public decimal? CIRCUIT_ID { get; set; }

        public string SPEAKER_TAG_ID { get; set; }

        public decimal CMPNT_CAT_ID { get; set; }

        public string CMPNT_PROFIBUS_NODE { get; set; }

        public decimal? HART_SIGNAL_ID { get; set; }

        public decimal SIGNAL_TYPE_ID { get; set; }

        public decimal LINEAR_TYPE_ID { get; set; }

        public string KKS_TOTALPLANT { get; set; }

        public string KKS_FUNCTION_KEY_PREFIX { get; set; }

        public string KKS_FUNCTION_KEY { get; set; }

        public string KKS_FUNCTION_KEY_SEQUENCE { get; set; }

        public string KKS_EQUIPMENT_UNIT_CODE { get; set; }

        public string KKS_EQUIPMENT_UNIT_SEQUENCE { get; set; }

        public string KKS_EQUIPMENT_UNIT_ADD_CODE { get; set; }

        public string KKS_COMPONENT_KEY { get; set; }

        public string KKS_COMPONENT_KEY_SEQUENCE { get; set; }

        public string USE_SYMBOL_FLG { get; set; }

        public decimal CMPNT_ASSOCIATED_ID { get; set; }

        public string MERGE_RELEASE_FLG { get; set; }

        public string ON_SIGNAL_STATE_DESC { get; set; }

        public string OFF_SIGNAL_STATE_DESC { get; set; }

        public decimal? TYPICAL_TAG_CLASS_ID { get; set; }
    }
}
